package com.ruoyi.jiuyezu.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 题目，记录所有题目及其相关信息对象 jiuyezu_questions
 * 
 * @author wyj
 * @date 2024-07-22
 */
public class Questions extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 题目编号 */
    @Excel(name = "题目编号")
    private String questionCode;

    /** 题目名称 */
    @Excel(name = "题目名称")
    private String questionName;

    /** 题目类型（Java、Redis、网络等等） */
    @Excel(name = "题目类型", readConverterExp = "J=ava、Redis、网络等等")
    private String questionType;

    /** 逻辑删除 */
    @Excel(name = "逻辑删除")
    private Integer isDeleted;

    /** 创建人 */
    @Excel(name = "创建人")
    private String createdBy;

    /** 创建人ID */
    @Excel(name = "创建人ID")
    private Long createdById;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdDate;

    /** 修改人ID */
    @Excel(name = "修改人ID")
    private Long updateById;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updateDate;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setQuestionCode(String questionCode) 
    {
        this.questionCode = questionCode;
    }

    public String getQuestionCode() 
    {
        return questionCode;
    }
    public void setQuestionName(String questionName) 
    {
        this.questionName = questionName;
    }

    public String getQuestionName() 
    {
        return questionName;
    }
    public void setQuestionType(String questionType) 
    {
        this.questionType = questionType;
    }

    public String getQuestionType() 
    {
        return questionType;
    }
    public void setIsDeleted(Integer isDeleted) 
    {
        this.isDeleted = isDeleted;
    }

    public Integer getIsDeleted() 
    {
        return isDeleted;
    }
    public void setCreatedBy(String createdBy) 
    {
        this.createdBy = createdBy;
    }

    public String getCreatedBy() 
    {
        return createdBy;
    }
    public void setCreatedById(Long createdById) 
    {
        this.createdById = createdById;
    }

    public Long getCreatedById() 
    {
        return createdById;
    }
    public void setCreatedDate(Date createdDate) 
    {
        this.createdDate = createdDate;
    }

    public Date getCreatedDate() 
    {
        return createdDate;
    }
    public void setUpdateById(Long updateById) 
    {
        this.updateById = updateById;
    }

    public Long getUpdateById() 
    {
        return updateById;
    }
    public void setUpdateDate(Date updateDate) 
    {
        this.updateDate = updateDate;
    }

    public Date getUpdateDate() 
    {
        return updateDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("questionCode", getQuestionCode())
            .append("questionName", getQuestionName())
            .append("remark", getRemark())
            .append("questionType", getQuestionType())
            .append("isDeleted", getIsDeleted())
            .append("createdBy", getCreatedBy())
            .append("createdById", getCreatedById())
            .append("createdDate", getCreatedDate())
            .append("updateBy", getUpdateBy())
            .append("updateById", getUpdateById())
            .append("updateDate", getUpdateDate())
            .toString();
    }
}
